{include file='common/head'}
<body>
<div class="x-nav">
      <span class="layui-breadcrumb">
        <a >首页</a>
        <a >演示</a>
        <a>
          <cite>会员抢单</cite>
        </a>
      </span>
    <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="{:url('admin/yuyue/index')}" title="刷新">
        <i class="layui-icon" style="line-height:30px">ဂ</i></a>
</div>
<div class="x-body">
    <div class="layui-row">
        <form class="layui-form layui-col-md12 x-so">
            <div class="layui-input-inline">
                <select name="zid">
                    <option value="">支付方式</option>
                    <option value="1">微信支付</option>
                    <option value="2">支付宝支付</option>
                    <option value="3">银行卡支付</option>
                </select>
            </div>
            <input type="submit" name="sub" class="layui-btn" value="开始搜索" lay-submit="" lay-filter="sreach">
        </form>
    </div>
    <table class="layui-table">
        <thead>
        <tr style="text-align: center">
            <th style="text-align: center">序号</th>
            <th style="text-align: center">会员账号</th>
            <th style="text-align: center">会员昵称</th>
            <th style="text-align: center">会员信用额度</th>
            <th style="text-align: center">支付类型</th>
            <th style="text-align: center">抢单状态</th>
            <th style="text-align: center">操作</th>
        </tr>
        </thead>
        {volist name="yuyue" id="b" key='key' }
        <tbody>
        <tr style="text-align: center">
            <td>{$key}</td>
            <td>{$b.user_yuyue.u_phone}</td>
            <td>{$b.user_yuyue.u_name}</td>
            <td>{$b.user_yuyue.u_money}元</td>
            <td>{$b.zpayyuyue.z_type}</td>
            <td>{if $b.y_state==0}排队{elseif $b.y_state==1}已接单{elseif $b.y_state==2}等待{/if}</td>
            <td class="td-manage">
                <a title="修改" href="javascript:;"  attr_id='{$b.yid}' onclick="banner_edit(this)"  class="layui-btn  layui-btn-xs layui-btn-radius layui-btn-normal">
                    <i class="layui-icon"></i><span style="color: mediumblue">修改</span>
                </a>
            </td>
        </tr>
        </tbody>
        {/volist}
    </table>
    <div class="page">
        <div>
            {$page}
        </div>
    </div>

</div>
<script>
    function banner_edit(obj){
        var yid=$(obj).attr('attr_id');
        //alert(mid);
        var url="{:Url('admin/yuyue/update')}?yid="+  yid;
        // alert(url);
        x_admin_show('查看',url);
    }
</script>

</body>

</html>